package com.scau.data.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 进货表头信息
 */
@Data
@TableName("`order`")// 与mysql关键字重合了，使用`避免错误
public class OrderDO {
    @TableId(type = IdType.AUTO) // 自增
    private Long orderNumber;
    private Date time;
    private Integer factoryId;
    private String payMethod;
    private BigDecimal amount;
    private Integer warehouseId;

    public Long getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(Long orderNumber) {
        this.orderNumber = orderNumber;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Integer getFactoryId() {
        return factoryId;
    }

    public void setFactoryId(Integer factoryId) {
        this.factoryId = factoryId;
    }

    public String getPayMethod() {
        return payMethod;
    }

    public void setPayMethod(String payMethod) {
        this.payMethod = payMethod;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public Integer getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(Integer warehouseId) {
        this.warehouseId = warehouseId;
    }

    @Override
    public String toString() {
        return "OrderDo{" +
                "orderNumber=" + orderNumber +
                ", time=" + time +
                ", factoryId=" + factoryId +
                ", payMethod='" + payMethod + '\'' +
                ", amount=" + amount +
                ", warehouseId=" + warehouseId +
                '}';
    }
}
